package tech.aistar.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tech.aistar.entity.ExaInfo;
import tech.aistar.entity.Wrongtopic;

@Repository
public interface ExaInfoMapper {
    @Select("select * from exa_info where test_id = ${tid}")
    ExaInfo findexa(String tid);


    @Insert("insert into exa_info(paper_id,test_value,test_start,test_end,test_date) value (#{paperId},#{testValue},#{testStart},#{testEnd},#{testDate})")
    int insertExaInfo(ExaInfo exaInfo);

}
